<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<!--全局css-->
		<link href="../../css/g.css" rel="stylesheet">
		<!--每个文件对应一个css-->
		<script>
			//每个页面必须添加 ，css单位使用rem
			document.documentElement.style.fontSize = window.innerWidth / 7.5 + 'px';
		</script>
		<script src="../../js/mui.min.js"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init({
				preloadPages: [{
					url: "test2.html", //子页面HTML地址，支持本地地址和网络地址
					id: "test2", //子页面标志
				}]
			});
		</script>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">标题</h1>
		</header>
		<div class="mui-content" style="background-color: darkseagreen;">

			<button type="button" onclick="roter()" class="mui-btn mui-btn-blue mui-btn-outlined">按钮</button>
		</div>
		<!--有用到再引用-->
		<!--接口-->
		<script src="../../js/base.js"></script>
		<!--模板-->
		<script src="../../js/laytpl.js"></script>
		<!--常用方法 dom操作用原生或mui-->
		<script src="../../js/mq.js"></script>

		<script>
			function roter() {
				var self = plus.webview.currentWebview();
				setTimeout(function(){
					self.hide();
				},300);

				$$.openWin({
					url: "test2.html",
					id: "test2",
				})
			}
		</script>
	</body>
</html>